import { Body, Controller, Get, Post, UseGuards } from '@nestjs/common';
import { AppService } from './app.service';
import { Public } from './decorations/public.decorator';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Public()
  @Post('login')
  login(@Body() userInfo) {
    return this.appService.login(userInfo);
  }
}
